package chaoyi.kuo.collections

/**
 * @author ChaoYi, Kuo
 */
object ListNo1 {
  def main(args : Array[String]) : Unit = {
		  val list = List("A", "B", "C", 1, 99.9)
		  
		  println(list)
		  
		  for (i <- list)
			  println(i)
			  
		  val oneTwo = List(1, 2)
		  val threeFour = List(3, 4)
		  val oneTwoThreeFour = oneTwo ::: threeFour
		  println(oneTwo + " and " + threeFour + " were not mutated.")
		  println("Thus, " + oneTwoThreeFour + " is a new List.")
		  
		  val list2 = 1::2::3::4::Nil
		  println("list2 = " + list2)
  }
}
